package com.erlinyou.im.service.offline.impl;


import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.erlinyou.base.service.BaseServiceImpl;
import com.erlinyou.im.dao.repository.offline.OfflineMessageRepository;
import com.erlinyou.im.model.offline.OfflineMessage;
import com.erlinyou.im.model.offline.OfflineMessageKey;
import com.erlinyou.im.service.offline.IOfflineMessageService;

/**
 *
 */
@Service
public class OfflineMessageServiceImpl extends BaseServiceImpl<OfflineMessage, OfflineMessageKey> implements IOfflineMessageService {
	private OfflineMessageRepository repository;
	@Resource
	public void setBaseService(OfflineMessageRepository repository) {
		this.repository = repository;
		this.baseRepository = repository;
	}
	@Override
	public List<OfflineMessage> findByUserid(Long userid) {
		return repository.findByUserid(userid);
	}
}
